package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdFolder;

import java.util.List;

@Mapper
public interface AdFolderMapper {
    int deleteByPrimaryKey(Integer folderId);

    int insert(AdFolder record);

    int insertSelective(AdFolder record);

    AdFolder selectByPrimaryKey(Integer folderId);

    int updateByPrimaryKeySelective(AdFolder record);

    int updateByPrimaryKey(AdFolder record);


    List<AdFolder> selectAdFoldersByType(@Param("folderType")Integer folderType);

    AdFolder selectAdFolderByFolderName(@Param("folderName")String folderName);
}